import json


def object2json(objects):
    data = {'total': len(objects), 'rows': objects}
    json.dumps(data)


key_id = 'key_id'